package com.onlinesshop.mall.dao;

import com.onlinesshop.mall.pojo.Shopping;

import java.util.List;

public interface ShoppingDao {
    /**
     * 查询所有的地址信息
     * @return
     */
    List<Shopping> findAll();

    /**
     * 根据id查询地址
     * @param id
     * @return
     */
    Shopping findById(int id);

    /**
     * 添加地址信息
     * @param shopping
     * @return
     */
    int addShopping(Shopping shopping);

    /**
     * 更新地址信息
     * @param shopping
     * @return
     */
    int updateShopping(Shopping shopping);

    /**
     * 删除地址信息
     * @param shopping
     * @return
     */
    int deleteShopping(Shopping shopping);
}
